<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>小土豆 - 导航</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <link rel="stylesheet" href="css/style.css">
</head>
<body class="light-theme">
    <div class="container">
        <!-- 左侧菜单 -->
        <aside class="sidebar">

            <nav class="menu" id="menu">
                <!-- 动态生成菜单 -->
            </nav>
        </aside>

        <!-- 添加遮罩层 -->
        <div class="sidebar-overlay" id="sidebarOverlay"></div>

        <!-- 右侧内容区 -->
        <main class="content">
            <header class="fixed-header">
                <div class="header-left">
                    <button class="icon-btn toggle-sidebar" id="toggleSidebar">
                        <i class="fas fa-bars"></i>
                    </button>
                    <h1 class="site-title">小土豆</h1>
                </div>
                <div class="header-right">
                    <button class="header-btn friend-link-btn" id="friendLinkBtn">
                        <i class="fas fa-link"></i>
                        <span>申请友链</span>
                    </button>
                    <button class="icon-btn theme-toggle" id="themeToggleBtn">
                        <i class="fas fa-sun"></i>
                    </button>
                </div>
            </header>
            
            <div class="content-wrapper" id="content">
                <div class="loading" id="loading">
                    <div class="spinner"></div>
                    <p>加载中...</p>
                </div>
                <!-- 动态生成内容 -->
            </div>
        </main>
    </div>

    <!-- 回到顶部按钮 -->
    <button class="back-to-top" id="backToTop">
        <i class="fas fa-arrow-up"></i>
    </button>

    <!-- 友链模态框 -->
    <div id="friendLinkModal" class="modal">
        <div class="modal-content">
            <span class="close-modal">&times;</span>
            <h2>申请友链</h2>
            <form id="friendLinkForm">
                <div class="form-group">
                    <label for="siteName">网站名称</label>
                    <input type="text" id="siteName" name="siteName" required>
                </div>
                <div class="form-group">
                    <label for="siteUrl">网站链接</label>
                    <input type="url" id="siteUrl" name="siteUrl" required>
                </div>
                <div class="form-group">
                    <label for="siteDesc">网站描述</label>
                    <textarea id="siteDesc" name="siteDesc" required></textarea>
                </div>
                <div class="form-group">
                    <label for="contactEmail">联系邮箱</label>
                    <input type="email" id="contactEmail" name="contactEmail" required>
                </div>
                <button type="submit" class="submit-btn">提交申请</button>
            </form>
        </div>
    </div>

    <script src="js/main.js"></script>
</body>
</html>
